
What I need is for my main page to have a text field.
#Html open popup window how to
I'm learning javascript, and I am having trouble figuring out how to do this.
#Html open popup window code
I've included the BODY of the code I'm using below. Ideally, the popup should follow the cursor (not a must, though).
#Html open popup window full
Without this, users only see the map full of school icons, and it's difficult to know which school is which. My problem is, I'd like to include popups for each hotspot that, on mouseover, show the name of the school. I'm creating hotspot links to googlemaps for each school (in a new browser window). I'm developing a site to include a map of schools (). Scroll down 'Purchase Individuals' and click on one of the songs. I can give you the URL for the thing so you can see it in action. The window is supposed to have a black background, which is does in Firefox but for some reason it's blue in Chrome? (Minor issue.I know.) In Firefox, the player is not visible(but you can find where it's at and pause/resume and etc.) The close link is visible. (I could swear it was working on both once upon a time.but now just isn't.) In Chrome, the player is visible but the close link is not. I tested it on both Firefox and Google Chrome. I've put the code below.īUT! Here's what's happening. The function writes the html code for a media player (the URL for which is passed to the function) depending on what link is clicked, and then creates a text link "Close" below the player. I created a simple script/function that generates a popup window when you click on a link. Instead of placing javascript in href, you can place your javascript in "onclick" event.This is probably stupid on my part so, I apologize in advance. In Internet Explorer, the popup does not work and I get a "page cannot be displayed" error.įrom your above description, what I understand that you place the javascript in the hyperlink's" href " attribute which causes the problem. But in addition to the popup box, a new tab opens. If the user clicks on "comment" how do I let the popUp() function know that I want to open popUp(~/page.aspx?id=1234) rather than popUp(~/page.aspx?id=5678) ?Īgain, the popup box is working in Firefox. But how would I alter the XSLT, above, to be able to pass the url to the popUp function? For example, the popUp() function similar to the example on Mudassar's site. aspx page header, I guess I could put in a javascript function. Here is the XSLT code that creates the hyperlink. aspx page has Xml placeholders that each read an Xml file and the Xml file is transformed by an XSLT file.

I am unsure of how to implement either suggestion because the hyperlink is created dynamically by an XSLT file. Instead of placing javascript in href, you can place your javascript in "onclick" event. Click on "comment" to see what I mean.įrom your above description, what I understand that you place the javascript in the hyperlink's" href " attribute which causes the problem. If I did not explain this clearly enough, the page that I am having problems with is No popup window appears.ĭoes anyone know how to fix either of these problems? When I click on the hyperlink, a new tab opens up and says that the page cannot be displayed. However, it also causes another tab to open up which displays a white page that says.Īnd in the address bar for that new tab, the url reads. When I click on the hyperlink, the window opens up just like I want it to - a 400x400 window with no menubar, and it accesses the proper XML file and does the proper XSLT transformation. But, once you click on the hyperlink, things get weird.

In both Firefox and Internet Explorer, if I hover the mouse over the link, this is the text that displays in the bottom task bar. I have a hyperlink on a page that, when clicked, should open up a popup window, but I am getting two completely different problems in Firefox and Internet Explorer.
