It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Windows.location wont work

Windows.location wont work

Postby jacastronunes on Mon May 31, 2010 3:14 pm

Hello m8s, I Have the following code window.location = <?=$location?>;

But it wont work only in a macintosh computer in safari browser


thanks in advance
jacastronunes
 
Posts: 1
Joined: Mon May 31, 2010 3:12 pm

Re: Windows.location wont work

Postby HotNoob on Tue Jun 01, 2010 8:10 pm

window.location = <?=$location?>;


is that a mix with php?

try:
Code: Select all
window.location = "<?php echo $location; ?>;"


also, with this script needs to be triggered via an event, otherwise you may get a security error.
HotNoob
100+ Club
 
Posts: 169
Joined: Sun May 02, 2010 1:38 am


Who is online

Users browsing this forum: No registered users and 8 guests