scialom
03-19-2003, 08:25 AM
Hi,
I cant use location.href with netscape 7. What should I do instead?
thanks,
Assaf
I cant use location.href with netscape 7. What should I do instead?
thanks,
Assaf
|
Click to See Complete Forum and Search --> : location.href with netscape scialom 03-19-2003, 08:25 AM Hi, I cant use location.href with netscape 7. What should I do instead? thanks, Assaf khalidali63 03-19-2003, 08:40 AM You must be doing something wrong. window.location.href is standard syntax to get url info Cheers Khalid scialom 03-19-2003, 11:11 AM Hi, It is still not working on netscape - work fine with ie. Any ideas? Assaf Vladdy 03-19-2003, 11:13 AM try document.URL scialom 03-19-2003, 11:22 AM sorry... but still can get it work :mad: Assaf Vladdy 03-19-2003, 11:25 AM Post the rest of your code or a link to it. Make sure you got javascript turned on.... scialom 03-19-2003, 11:52 AM Sorry cant give a link - it is in my intranet but here is the code: <script language="JavaScript"> function del (id,ddate){ var agree = confirm ("Are you sure you want to delete it?"); if (agree) { window.location.href ("del.php?chk=2&id="+id + "&ddate="+ddate); } else { alert('You cancelled the operation'); window.location.href ("show.php?id="+id); } </script> Assaf khalidali63 03-19-2003, 12:15 PM This line window.location.href ("del.php?chk=2&id="+id + "&ddate="+ddate); is wrong do it this way window.location.href = ("del.php?chk=2&id="+id + "&ddate="+ddate); Pls in case you think why it works in IE..well as I alwasy say..IE does allots of things which it must not but ...well it does them anyways.. Cheers Khalid scialom 03-20-2003, 03:50 AM Thanks!!! It is working now...:D Assaf webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |