links error what is wrong?

jordan hero

Why the links below works in Mozilla Firefox but don't work in Google Chrome? Any problems in my code and how to fix it?

<select>
 <option onclick="window.open('https://www.google.com/');"> Example1</option>
 <option onclick="window.open('https://www.google.com/');"> Example2 </option>
 <option onclick="window.open('https://www.google.com/'); " >Example3</option>
</select>
Nihal

this will work only if saved in .html file. not on some online editor

<select onchange="this.options[this.selectedIndex].value && (window.open( this.options[this.selectedIndex].value));">
<option value="">Select...</option>
<option value="http://google.com">Google</option>
<option value="http://yahoo.com">Yahoo</option>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

what's wrong for this error

what is wrong with this code it gives error

What is wrong with this Dart error handler?

Typescript build error - what is wrong with this?

What is wrong with this excel if error formula?

what is wrong with this shapely error message

What's wrong with this? Load Pages when links are clicked

plsql what is wrong with this code error 'INTO list is of wrong type'

MySQL error: What is wrong with my syntax for ranking?

what's wrong with this for loop? weird error

WHEA_UNCORRECTABLE_ERROR BSOD - what is wrong?

glibc error detected no idea what is wrong

What's wrong with this query? Syntax error

What's wrong with this route ('Future' error)?

What's wrong with this regex? JSLint is throwing an error

What is wrong here? (Attribute Error __len__)

Error "Unknown column in where clause" - What is wrong?

What's wrong with this query? Doubling quotes error

EXECEL what is the wrong with this formula always get this error

what is the wrong between this error and my code?

Railo 4.2.1.008 Error (missinginclude) what is going wrong?

ERROR: undefined reference to... what is wrong?

What is wrong with my LEFT JOIN? Syntax Error

Unvisited links looking wrong

Syntax Error, unexpected $end -- PHP error, what's wrong?

What's wrong? PHP Parse error: syntax error, unexpected '}', expecting ',' or ';' in

RSS tickler does not tick when using a collection of links rather than texts: what is wrong?

Firebase Crashlytics links from mail, redirect to error-page, due to wrong Chrome user

What is wrong with it?