Popup window

  • 3
  • Question
  • Updated 8 years ago
  • Answered
How to create javascript popup windows for an ebook store?
Photo of MirandaM


  • 1 Post
  • 0 Reply Likes

Posted 8 years ago

  • 3
Photo of jeremy

jeremy, Employee

  • 1349 Posts
  • 90 Reply Likes
Hello Miranda,

You can add a pop-up window to your site by adding some HTML.

This is how:

1. Go to www.htmlbasix.com/popup.shtml .
2. Edit the settings you would like to use for the pop-up window.
3. In the section that asks for the URL, you would need to add an already made webpage URL (you can create this on your own site or use another site's URL). If you would like to use your own page, you can click on "Add Page" and make sure that you've unticked the "Include in Navigation" box so that a link does not display in your navigation.
4. Click on "generate code".
5. Copy the first section of code and add an HTML Widget to the page and paste the HTML into the HTML editor that opens.
6. Copy the second section of code and add a second HTML Widget underneath the first, then paste the code into the editor that opens.
7. Republish your site by clicking on the green "Publish to the web" button.

I hope this helps.
Photo of smithy


  • 1222 Posts
  • 28 Reply Likes
there ius another code you can use.

<script type="text/javascript">
// Popup window code
function newPopup(url) {
popupWindow = window.open(
<a href="JavaScript:newPopup('TYPE YOUR URL HERE');">TYPE IN TEXT THAT YOU WANT TO SEE</a>

to put this on this on your site,

1. drag and drop an HTML widget
2. copy and paste this code,
3. edit your URL and the TEXT,
4. press save on the HTML widget
5. press save in the site builder,
6. press the green 'publish to the web' button.

leave out <!-- and -->. those are just there for the forum to stop reading the code
Photo of 62amjad


  • 19 Posts
  • 0 Reply Likes
hi i ant to make popup so how can i make it and give me code plzz
you can see in image
and live e.g

This reply was created from a merged topic originally titled
Photo of Brianna


  • 2045 Posts
  • 92 Reply Likes
Hi 62amjad,
Please give one of the suggestions above a try. If you need further assistance, certainly let us know!
Photo of 62amjad


  • 19 Posts
  • 0 Reply Likes
hi i have tray it but its not work pleas help me how can i make popup window
Photo of Marije

Marije, Official Rep

  • 4636 Posts
  • 237 Reply Likes
Hello 62amjad - can you post a link to your site where you've tried to add the code so that we can take a look at why it's not working?