/    Sign up×
Community /Pin to ProfileBookmark

location.href with netscape

Hi,

I cant use location.href with netscape 7. What should I do instead?

thanks,
Assaf

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@khalidali63Mar 19.2003 — You must be doing something wrong.

window.location.href

is standard syntax to get url info

Cheers

Khalid
Copy linkTweet thisAlerts:
@scialomauthorMar 19.2003 — Hi,

It is still not working on netscape - work fine with ie.

Any ideas?

Assaf
Copy linkTweet thisAlerts:
@VladdyMar 19.2003 — try document.URL
Copy linkTweet thisAlerts:
@scialomauthorMar 19.2003 — sorry... but still can get it work :mad:

Assaf
Copy linkTweet thisAlerts:
@VladdyMar 19.2003 — Post the rest of your code or a link to it. Make sure you got javascript turned on....
Copy linkTweet thisAlerts:
@scialomauthorMar 19.2003 — 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
Copy linkTweet thisAlerts:
@khalidali63Mar 19.2003 — 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
Copy linkTweet thisAlerts:
@scialomauthorMar 20.2003 — Thanks!!!

It is working now...?

Assaf
×

Success!

Help @scialom spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...