Jump to content

Help with: <select onchange= to open NewWindow


vmars316

Recommended Posts

Hello & Thanks ,

I created a freeware program (myFavs) that creates an html page

(myFavs.html)

which has a bunch of dropDown menus .

Each menu has a list of websites to click on .

It works fine , except that when I click/select a link

it reuses the same Tab as the myFavs.html I did the clicking on .

 

But what I want to do , is to open up a new Tab for the clicked-on link .

I believe all I need to do is to change the <select onchange= value .

<select style="width:200px; font:14px Arial Black; color:rgb(0,0,0); background-color:rgb(231,169,126);" name="menu" onchange="window.open(this.options[this.selectedIndex].value,'_top')">  

The part I need to change is this:

onchange="window.open(this.options[this.selectedIndex].value,'_top')"

To leave the myFavs.html open , AND open a New Window for the link clicked-on ,

what should that 'onchange=' be changed into ?

 

Here is what the BuiltPage looks like:

http://www.vmars316.com/ShowMe/MyIndex.html

 

Thanks...Vern

.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...