Hello! This is the most annoying thing to me, I need redirections with Javascript often but window.location
Doesn't work in chrome? I could swear it used to because I have just noticed this problem. Here is what I dowindow.location = "http://mywebsite.com";
Works in Firefox, but not chrome? (I don't even develop for IE I just redirect because it's rage inducing, I suggest everyone do this). Please help, thanks!
NardCake 30 Posting Pro in Training
Recommended Answers
Jump to PostThere must be something else going on here.
I just tested the following code on Chrome 23, Firefox 16, Opera 12.1 and IE9 and it works as expected. Feel free to post your code.
<!DOCTYPE html> <html> <head> </head> <body> <script> window.location = "
Jump to PostI'm not sure what the problem might be, but window.location.href = "http://www.friendster.com" is absolutely working fine across browsers.
Jump to PostThe onclick event is not going to work for that scenario. try something like this:
<!DOCTYPE html> <html> <head> </head> <body> <select id="dropdown" size="1"> <option value="none" selected="selected">-- Please Select --</option> <option value="
All 9 Replies
ryantroop 177 Practically a Master Poster
NardCake 30 Posting Pro in Training
JorgeM 958 Problem Solver Team Colleague Featured Poster
NardCake 30 Posting Pro in Training
lambing 0 Light Poster
JorgeM 958 Problem Solver Team Colleague Featured Poster
NardCake 30 Posting Pro in Training
ryantroop 177 Practically a Master Poster
NardCake 30 Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.