4 Replies - 668 Views - Last Post: 10 May 2013 - 03:33 PM

#1 noahwilson  Icon User is offline

  • New D.I.C Head

Reputation: -8
  • View blog
  • Posts: 26
  • Joined: 06-May 13

How to i create popup?

Posted 10 May 2013 - 02:50 AM

Hello everybody
Look like the title, i have a question: How to create popup. please share your suggestion.
Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: How to i create popup?

#2 andrewsw  Icon User is offline

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3369
  • View blog
  • Posts: 11,410
  • Joined: 12-December 12

Re: How to i create popup?

Posted 10 May 2013 - 03:10 AM

You have not supplied enough information, besides which there are a huge number of examples of JS and CSS popups if you Google for them. If you find one and struggle to get it working then by all means come back with a more specific question.
Was This Post Helpful? 0
  • +
  • -

#3 laytonsdad  Icon User is offline

  • Cheese and Sprinkles
  • member icon

Reputation: 436
  • View blog
  • Posts: 1,851
  • Joined: 30-April 10

Re: How to i create popup?

Posted 10 May 2013 - 09:54 AM

Google results
Was This Post Helpful? 0
  • +
  • -

#4 galtech  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 13
  • Joined: 16-March 13

Re: How to i create popup?

Posted 10 May 2013 - 03:26 PM

Here is some code for creating a popup window in it's simplest, most basic form. It uses HTML and Javascript. If you do a little research, you will see tutorials and cheatsheets that will help you to create much nicer JQuery popups and you can add CSS to style according to taste.

Good luck!

<html>
<head>
<title>Popup Windows
</title>

<script type="text/javascript">  

function popup() {
Pop=window.open("testpage.html","popone","width=250,height=400");   
}

</script>

</head>
<body>

<a href="#" onclick="popup()">popup window</a>
<a href="#" onclick="Pop.close()">popup window</a>

</body>
</html>


This post has been edited by galtech: 10 May 2013 - 03:36 PM

Was This Post Helpful? -1
  • +
  • -

#5 andrewsw  Icon User is offline

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3369
  • View blog
  • Posts: 11,410
  • Joined: 12-December 12

Re: How to i create popup?

Posted 10 May 2013 - 03:33 PM

<script language="Javascript">

This has been deprecated for a long time, use script type="text/javascript" (or even just script, for modern browsers), nor is it necessary to comment JS (or, at least, it is discouraged).

You should also include a valid DOCTYPE if you are presenting a sample page (and in all pages).

This post has been edited by andrewsw: 10 May 2013 - 03:36 PM

Was This Post Helpful? 1
  • +
  • -

Page 1 of 1