Jump Menu Open New Window

Jun 6, 2004

I have a jump menu on my page and it works fine, but I want the selections in the menu to open in a new browser window. How do I do that?

<script>
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>

<form name="form1" method="post" action="">
<div align="right"><select name="form1" class="box" onChange="MM_jumpMenu('parent',this,0)">
<option value=http://www.1stoption.com>-- Option 1</option>
<option value=http://www.2ndoption.com>-- Option 2</option>
</select>
</div>
</form>

View 1 Replies


ADVERTISEMENT

List Menu Open Into Blank Window

Apr 27, 2010

I have this list menu that needs to pop open a blank window in front of the already open webpage. It also needs to work in IE and hopefully Firefox if possible.[code]

View 1 Replies View Related

Jump-menu In IE

Mar 23, 2007

I have created a small javascript jump menu that is designed to hide/display content depending on the users selection. It works perfectly in firefox, but nothing happens in IE. Code:

View 3 Replies View Related

OnClick Window.Open With Mouse Right Hand Context Menu

Aug 17, 2011

Using onclick=window.open function in js to open a pdf file link in a new popup window. Works fine to display the file onscreen, but not if the user wants to save the file client-side to their computer. The right-hand-button context menu for the mouse will allow the user to download, but the file saved will be a html dump file for the webpage and the name of the file will be that for the webpage. Of course I can use the easy <a href> method for download links and the mouse context menu options will be as expected, but I can only use target="-blank" or target="_self". I need a popup window to open.

Could use :
oncontextmenu="alert('Left click the link to open, and then SAVE from with the pdf viewer')
to advise users how to save the file, and could use:
"javascript: void(0)"
To eliminate most mouse context menu options, so the user won't bother try. So how can I get a link to a file which can be viewed in a popup window and downloaded using mouse right-hand context menu?

View 7 Replies View Related

Jump Menu Query

Aug 21, 2007

I have this code which works well, but rather than buttons (title 1, title 2), I want to achieve the same description change using a jump menu. I'm pulling my hair out trying to work it out and i'm sure it's simple. Code:

View 3 Replies View Related

Jump Menu - Adding Rel Tag

May 20, 2006

I have the jump menu (used with an html form):

<script language="javascript">
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
</script>

How can i add rel=nofollow?

View 4 Replies View Related

Pulldown Forms/Jump Menu

Feb 23, 2003

However, I want to create a demo for people where if they pull down the first value, the script does what it has to do

however, if they choose any other option (choice b,c,d,e etc)
there is a jump link like feature where a link opens a new window asking them to buy

How do i program this pulldown to recognize what values need to link to another page?

View 3 Replies View Related

JQuery :: Select Menu Jump In Chrome?

Oct 9, 2011

I use the select menu script from [URL].. in Firefox all works fine. But when I use it in google chrome the focus off the site changes to the end of the site. My menu has 200 entrys. How can I provide the change of the focus?

View 2 Replies View Related

On Selection Next Jump Menu Pops Up With More Options

Nov 7, 2011

I need a jump menu, that when an item is selected the next jump menu pops up with more selections to be made. Is this possible?

View 8 Replies View Related

JS Jump Menu Location Indexing On Search Engines?

Oct 24, 2009

I'm creating different pages on a website for each branch in the country for a business. The way the user gets to their branch is through a dreamweaver generated jump menu.My question is: Will search engine robots crawl the pages that are linked via the jump menu?So for example the page for the London branch can only be navigated to via the jump menu (or typing in the url in the address bar). Will a search engine index this page?The jump menu script is below:

<script type="text/javascript">
<!--
function MM_jumpMenuGo(objId,targ,restore){ //v9.0

[code]....

View 4 Replies View Related

Window.Scroll Smooth Jump To Certain Place On Page

Aug 3, 2010

I'm having two problems with my code:
1. How do I make jumping to a certain place on the page using window.scroll more smooth and not just a direct jump?
2. Also, can I do a scroll by percents? I have a horizontally scrolling website that has a picture with a width of 300%. Obviously, anyone with a different sized monitor than I do will jump to the wrong place if I use pixels.

View 1 Replies View Related

Code - Void Window.open - Link Would Open In The Same Window?

Feb 7, 2009

I have this piece of code which is opening link in new window:

How to change this code so link would open in the same window?

Probably I should change this part: javascript:void window.open

View 1 Replies View Related

Links That Uses Window.open Then Open A New Designated Window

Jan 17, 2012

I have a problem on the links on my page im working.sorry guys still a noob and my english is not that good. :b. my question is like i have a list of packages of food. [link_a] [link_b] [link_c] and i have a function that i put in my head tag:

function linkA()
{
window.open('link_a.html','link','width=300,height=200,resizable=yes');
}

now i can go to linka.html by click my link <A HREF="javascript:linkA()" >link a</A> is there a way i can have one functions that can open a link depend on what page .when it clicks then go to its designated page or i have to stick on writing function for linkB ,C,D and so on.

View 7 Replies View Related

Open A Link On The Same Window Using Window.open Or Any Other Method?

Oct 19, 2011

How to open a link on the same window using window.open or any other method in JavaScript.

View 2 Replies View Related

Child Window Close Event - Opening Another Link In A Separate Window Using Window.open()

Jan 29, 2010

I have a HTML and I am opening another link in a separate window using window.open() . The child window is something like 'http://yahoo.com' which is out side html. I need to refresh the parent window when the child window is closed.

View 4 Replies View Related

JQuery :: Keeping Accordion Menu Open When Menu Items Area Selected?

Aug 27, 2010

I have created a jquery accordion menu for a brilliant CMS called 'Concrete5' and all works lovely BUT I now would like the menu to stay open if a menu item is selected within the drop list.I have manged to create the following.....

var pathname = window.location.pathname;
var selecteda = $(".nav-selected a").attr("href");
// alert (selecteda)

[code]....

..but it doesn't seem to work.I'm not a JQuery GOD like most of you on here but I am trying my hardest The accordion menu I am trying to get this to happen on is Accordion Menu.

View 1 Replies View Related

JQuery :: SlideToggle Open One Of Two Hidden Sub-nav Bars When Either Of Two Different Menu Items Are Clicked Upon - Instead Of A Drop Down Menu

Oct 26, 2009

The purpose of the code is to slideToggle open one of two hidden sub-nav bars when either of two different menu items are clicked upon - instead of a drop down menu. What doesn't work is the hiding of the div that is not required, if it is already open. Viewing in firebug shows that the appropriate classes are being applied - I suspect the reason is that slideToggle has been somehow set and cannot be unset via another object - but perhaps that is not it at all?

$(document).ready(function() {
//add .toggle function to appropriate li element
$('#hozmenu li:nth-child(4)').toggle(function () {
//set 4th menu links colour to be green whilst div is shown
$('#hozmenu li:nth-child(4) a').css('color', '#95d890');
$('#toggle_nav_services').removeClass('toggle_show');
[Code]....

View 1 Replies View Related

JQuery :: Select Menu Shows 'undefined' When Open Menu?

Jan 13, 2011

I am trying to use the Jquery selecmenu to skin dropdowns.There are extra UL LI getting formed with data "undefined" so dropdown is showing undefined in end.

View 1 Replies View Related

Open In New Browser Window (like With Target="_blank", Not Window.open)

Dec 1, 2011

Code: window.location but have it open in new browser window (like with target="_blank", not window.open)

View 7 Replies View Related

Thru Window.open Open A Word Document In Print Preview Mode

Jul 23, 2005

Through window.open or window.showmodaldialog, I want to open a word
or excel document in Print Preview mode. Bcos I don't want the user to
make any changes or save it but the user can ONLY VIEW OR take a print
out.

View 1 Replies View Related

Window.Open In FireFox - Click Very Quickly - Multiple Windows Open

Nov 16, 2009

I'm using an <A> tag with an onclick event to open a window with JS (window.open)... In FIREFOX, if I click very quickly, multiple windows open. Not a problem in IE.

View 8 Replies View Related

Window.open - How To Open A Local File (xml) With Firefox

Apr 2, 2008

my file is located at c:AdminFiles.xml

i tried the following ways

window.open("c:/AdminFiles.xml",'HeavyXml');
window.open("c:AdminFiles.xml",'HeavyXml');
window.open("c:\AdminFiles.xml",'HeavyXml');

in the above i'm getting the following error: "Firefox doesn't know how to open this address, because the protocol (c) isnt associated with any program"

window.open("file:///c:\AdminFiles.xml",'HeavyXml');

the last attempt give to respond at all...

View 5 Replies View Related

Window.open() Doesn't Open New Window In FF, Only New Tab

Feb 14, 2011

window.open() doesn't open an entirely new window in FF3.6, just a new tab

Edit: Yeah, ok, so if i specify a size smaller than the current standard window, it'll be forced to open a new window. but what if i want a new standard sized window to open entirely?

View 4 Replies View Related

Script To Close Old Window And Open New Window With New Link And Specific Size

Jan 29, 2006

I need a script that will open a new window (popup / new link) in a specific size, but will also close the old window (where the popup came from). I know the popup window is easy but finding a work-able close window script as the new window is opened is impossible!!

View 3 Replies View Related

Child Pop Up Race Condition Using Window.open Need To Detect Window.onload

Nov 22, 2011

I am trying to pop up a window and then do stuff(set flags) when the content of the new window is done loading. For this I am trying to detect the window.onload of the pop-up child window but so far I am unsuccessful. I believe my problem is that the URL of child window is on different domain, than the one of the opener(parent) so that the window.onload is not being called. Though this may change, at the moment I do not have access to the code for the page I'm opening up in the pop-up. Im pretty new to web development.

[Code]....

View 3 Replies View Related

Open A Popup Window From A PHP Site And Pass In Some Parameters To Use In The Pop Up Window

Sep 23, 2010

I need to open a popup window from a PHP site and pass in some parameters to use in the pop up window. I have the params in an input box and need to get the val of the box into a param and pass it to the new popup window. All pages are local and in the same folder. The id of the input box is 'ddutykey'. The name of the new window would be showduty.php if possible.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved