by
0
7
1,906
3
Top 1% !
Famous
Easy-to-find
Specified
Refined
OpenSource
MultiPlatform
Popularity: 11940th place
.NETFramework4.5
Architecturex86_64
Extension.cs
Extension.vb
LanguageASP.NET
LanguageCSharp
LanguageVB.NET

Hide URL Parameters after PageLoad

Add a StartupScript to the page. This snippet hide the parameters of URL after PageLoad
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/729134/Hide-URL-Parameters-after-PageLoad?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
Response.Write("<script>setTimeout(function () { history.replaceState({ foo: \"bar\" }, \"RemoveParam\", location.pathname) }, 300);</script>");
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus