Click here to Skip to main content
15,887,355 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Capture the browser close event from the close button on top left corner Pin
Afzaal Ahmad Zeeshan15-Apr-17 3:01
professionalAfzaal Ahmad Zeeshan15-Apr-17 3:01 
AnswerRe: Capture the browser close event from the close button on top left corner Pin
F-ES Sitecore18-Apr-17 1:10
professionalF-ES Sitecore18-Apr-17 1:10 
GeneralRe: Capture the browser close event from the close button on top left corner Pin
ZurdoDev18-Apr-17 2:04
professionalZurdoDev18-Apr-17 2:04 
GeneralRe: Capture the browser close event from the close button on top left corner Pin
F-ES Sitecore18-Apr-17 2:38
professionalF-ES Sitecore18-Apr-17 2:38 
GeneralRe: Capture the browser close event from the close button on top left corner Pin
ZurdoDev18-Apr-17 3:03
professionalZurdoDev18-Apr-17 3:03 
QuestionHow to get Dynamic XFA form data using javascript Pin
abc123aaaa12-Apr-17 20:55
abc123aaaa12-Apr-17 20:55 
QuestionCenter a mouse over pop up one the page Pin
Member 131137407-Apr-17 9:56
Member 131137407-Apr-17 9:56 
AnswerRe: Center a mouse over pop up one the page Pin
Afzaal Ahmad Zeeshan7-Apr-17 12:07
professionalAfzaal Ahmad Zeeshan7-Apr-17 12:07 
To center the popup, depends on what that popup is. A plain-old JavaScript popup is based on the browser defaults, a custom made dialog is based on the settings of that framework. So if your popup, and since you have not shown where those wePop etc come from, there is very less that I can help with.

Ignore the following answer—I thought you were asking to place the script somewhere Laugh | :laugh:

A script can go anywhere in your web application, from where it can be easily loaded and executed. One of the ways is to actually append the script element to your web page, where it is going to be used,
HTML
<body>
   <!-- Content -->
</body>

<script>
   // Script content here.
</script>
However, a good approach is to have a script in a separate file, its own file, and then link that script to the document by its location. Such as like this,
HTML
<head>
   <script src="~/path/to/script.js"></script>
</head>
<body>
   <!-- Content -->
</body>
These are a few of the ways, that you can easily add the script to your document. The benefit of the second way, is that you can reuse the script in multiple pages, and this is the recommended way as well, you can then even link the script to your master layout page or theme file as well.

But just one thing; you would have to remove the hardcoded stuff, such as the hyperlink content etc, and then you can pass these elements and their values to the script for it to work.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~


modified 7-Apr-17 18:38pm.

GeneralRe: Center a mouse over pop up one the page Pin
Member 131137407-Apr-17 12:22
Member 131137407-Apr-17 12:22 
GeneralRe: Center a mouse over pop up one the page Pin
Afzaal Ahmad Zeeshan7-Apr-17 12:35
professionalAfzaal Ahmad Zeeshan7-Apr-17 12:35 
GeneralRe: Center a mouse over pop up one the page Pin
Member 131137407-Apr-17 18:32
Member 131137407-Apr-17 18:32 
QuestionCenter a mouse over popup Pin
Member 131137407-Apr-17 9:56
Member 131137407-Apr-17 9:56 
AnswerRe: Center a mouse over popup Pin
Afzaal Ahmad Zeeshan7-Apr-17 12:09
professionalAfzaal Ahmad Zeeshan7-Apr-17 12:09 
QuestionRent Distribution using javascript Pin
Member 131075305-Apr-17 0:52
Member 131075305-Apr-17 0:52 
AnswerRe: Rent Distribution using javascript Pin
Thanks78725-Apr-17 0:54
professionalThanks78725-Apr-17 0:54 
AnswerRe: Rent Distribution using javascript Pin
ZurdoDev5-Apr-17 1:42
professionalZurdoDev5-Apr-17 1:42 
GeneralRe: Rent Distribution using javascript Pin
Member 1097302610-Apr-17 20:53
Member 1097302610-Apr-17 20:53 
QuestionChanging a video at a certain time Pin
Citizen Vik2-Apr-17 22:18
Citizen Vik2-Apr-17 22:18 
QuestionRe: Changing a video at a certain time Pin
ZurdoDev3-Apr-17 1:30
professionalZurdoDev3-Apr-17 1:30 
AnswerRe: Changing a video at a certain time Pin
Citizen Vik3-Apr-17 7:22
Citizen Vik3-Apr-17 7:22 
GeneralRe: Changing a video at a certain time Pin
ZurdoDev3-Apr-17 7:51
professionalZurdoDev3-Apr-17 7:51 
GeneralRe: Changing a video at a certain time Pin
Citizen Vik3-Apr-17 21:05
Citizen Vik3-Apr-17 21:05 
GeneralRe: Changing a video at a certain time Pin
ZurdoDev4-Apr-17 0:42
professionalZurdoDev4-Apr-17 0:42 
GeneralRe: Changing a video at a certain time Pin
Citizen Vik4-Apr-17 7:47
Citizen Vik4-Apr-17 7:47 
GeneralRe: Changing a video at a certain time Pin
ZurdoDev4-Apr-17 7:49
professionalZurdoDev4-Apr-17 7:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.