In my script, there is a page name UserMain.aspx, and on this page I have 2 sections (i.e.2 IFrames). Now from one of the pages IFrameI want to get parentUrl(i.e. www.xyz/UserMain.aspx). I tried Request.url, but he gave the url IFrame, how to get parentUrl?
UserMain.aspx
IFrame
parentUrl
www.xyz/UserMain.aspx
Request.url
Both pages IFrameand parent pages are in the same domain.
There are only different windows and frames in the browser, the server code does not have the ability to move between them.
clientcript URL- , , , iframe :
var parentUrl = window.parent.location.href;
. , , . ,
Request.UrlReferrer.OriginalString.ToString();
string UrlBrowser= Request.UrlReferrer.OriginalString;
script, window.parent.location.href. , iframe . , iframe iframe..., window.top.location.href.
window.parent.location.href
window.top.location.href
window.top .
Source: https://habr.com/ru/post/1763436/More articles:WCF services. Create multiple instances at startup? - wcfKernel dump out of sync with gdb stack trace - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1763433/setontouchlistener-not-called-on-viewflipper&usg=ALkJrhjqcaGneOEY7dIMlvJjg1Tpcf-JIwApplying a function in each row of a data frame in R - filterhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1763435/ipad-partial-curl-modal-transition-always-curls-to-full-screen&usg=ALkJrhhjg2Ciewnu-BEhClSV2y0IZmEW2wHow to find the button with the value "value" on the html page (Webbrowser - Delphi) - htmlAdding chat features and VOIP calls? - androidLink to download the image instead of the image - htmlhow to convince my manager of rails 3 updatesJAR file signature file format - javaAll Articles