Solved

appending location.reload to url with javascript

Posted on 2016-09-29
4
61 Views
Last Modified: 2016-09-29
i'm using jquery.

Right now i'm calling a url with a button click.

something like this

            // *********** Button click event ***********
            $('#Button1').click(function () {

                // new window
                window.open('http://www.mypage1.html', '_blank', 'width=200, height=200');

            });
            // *********** Button click event ***********

Is there a way to append this   location.reload();  to my url using javascript

See what I want is as the url launches in its web browser window, the first thing I want it to do is do a page refresh with location.reload () and then load the content of my page.
0
Comment
Question by:maqskywalker
  • 2
4 Comments
 
LVL 8

Expert Comment

by:James Bilous
ID: 41822712
You want to reload the page in the new window or in your current window that opened the new window?
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 41822733
Is there a way to append this   location.reload();  to my url using javascript
No.  The reload code must be in the new page, not in a link on the old page.
1
 
LVL 1

Author Closing Comment

by:maqskywalker
ID: 41822757
thanks
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 41822818
You're welcome.
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question