Pages
Home
React JS
React Native
SQL Server
C#.net
Interview
Videos
Angular
ASP.Net
AJAX
Contact Us
27 January 2014
Use a regular expression to check whether the location already has a guid, if it is not there then reload the page.
var
lc
=
window
.
location
;
if
(!(
/\?guid=/
.
test
(
lc
)))
{
window
.
location
=
window
.
location
+
'?guid='
+
guid
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment