Classico Posted November 14, 2012 Share Posted November 14, 2012 I have a dropdown menu which uses the onclick="window.location =''" feature to navigate to different pages on my statistics website, and it works fine in FireFox. But it doesn't seem to be working at all when I try it in Chrome.... Is there a simple way on how to get it working for both FireFox and Chrome, or doesn't Chrome support it? Here's my dropdown if needed. <select> <option></option> <option onclick="window.location = 'http://www.stats.dawncraftmc.com/online.php'">Online</option> <option onclick="window.location = 'http://www.stats.dawncraftmc.com/kills.php'">Kills</option> <option onclick="window.location = 'http://www.stats.dawncraftmc.com/deaths.php'">Deaths</option> <option onclick="window.location = 'http://www.stats.dawncraftmc.com/xp.php'">XP</option> <option onclick="window.location = 'http://www.stats.dawncraftmc.com/blocks.php'">Blocks</option> </select> Quote Link to comment Share on other sites More sharing options...
MDCode Posted November 14, 2012 Share Posted November 14, 2012 (edited) There are various problems reported about chrome with onclick issues. I believe it is just incompatible. Edited November 14, 2012 by SocialCloud Quote Link to comment Share on other sites More sharing options...
Classico Posted November 14, 2012 Author Share Posted November 14, 2012 Oh, that's no good then. Do you know if there is any alternative that will work in both Chrome and Firefox? Quote Link to comment Share on other sites More sharing options...
Scott_S Posted November 14, 2012 Share Posted November 14, 2012 I would think that onchange on the select element would be the way to go about this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.